home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1998 August / macformat-066.iso / Shareware Plus / Information / About This Particular Mac 4.04 / About This Particular Mac 4.04.rsrc / TEXT_136.txt < prev    next >
Encoding:
Text File  |  1998-03-31  |  5.7 KB  |  177 lines

  1. 
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. ‚ÄúYeah, it was when I received ATPM 4.03, so I had to step into action immediately.‚Äù This was Ramon‚Äôs motive for staying up until 3:00 AM writing a whole graphic section upon the topic I suggested last issue. So for this month, we have decided to put Ramon in the driver‚Äôs seat. As for me, I will take a rest and enjoy the freedom of being an end user for a change. In the meantime, do not hesitate to send any graphic questions or contributions to <jghandour@atpm.com>.
  18.  
  19.  
  20.                                                                   ‚Ä¢ ‚Ä¢ ‚Ä¢
  21.  
  22.  
  23. GIF89a Export‚Äôs ‚ÄúHidden Feature‚Äù
  24.  
  25. GIF89a export filter is powerful. Remember that the GIF89 export filter in Photoshop works differently when the image is already in indexed color mode. There, it displays an almost-WYSIWYG (dithered even if you are not using any dithering) preview of your image and lets you select colors to make transparent (as opposed to masking the transparent regions). This is quite handy sometimes. 
  26.  
  27.  
  28. Getting Rid of Borders Around Images
  29.  
  30. When trying to put a generally dark image on a page with a dark background, many people almost go crazy. Having either a white or an empty background in Photoshop and then making it transparent results in fringing remnants of pixels that form a border around your image. This is a result of anti-aliasing and alpha blending which Photoshop does automatically.
  31.  
  32. To solve the problem, just use your dominant background color as the background layer; it‚Äôs as easy as that. Photoshop will automatically adapt alpha blending to the current background, and your images will look beautiful on your page. Here‚Äôs an example (with multiple background tones though, variation with dominant color added too):
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. This is our starting visual:
  41.  
  42. It consists of 13 layers, uses 24-bit color,
  43. and is 180K in size.
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. This is our target background:
  55.  
  56. It has already been edited, saved in JPEG format,
  57.  and is 3K in size.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. 1. Crop the image as closely as possible to the region¬†
  66. you want on your page. This step is important, as it
  67. reduces the number of colors in your image‚Äôs back-
  68. ground significantly. 
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75. 2. Now index the colors. Use an adaptive palette, without dithering. Start out with a 6-bit palette, just to see how it looks. If it doesn‚Äôt look good enough, climb to 7- or 8- bit.
  76.  
  77. 3. That wasn‚Äôt so bad, was it? Now export the image using the GIF89a export filter. Go to File/Export to do this. There, select the background colors you want transparent. The image will look severly distorted now, but don‚Äôt worry.
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. 4. As a final step, look at the image on the page background you want. Look at it right in the browser. 
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131. We went from 180K to 4 K in this example. We could have saved even more with a more advanced, but trickier technique. Instead of just using the same background for your image as for your page, try finding the dominant color of your background and using that.
  132.  
  133. Just replace step 1 with the following: Select the dominant color of your background. If this is more of a problem than you thought, try using the color picker tool to get a 3x3 or 5x5 average. Fill the background layer of your image with that color. The advantage of Photoshop in this area is that it will automatically correct the alpha blending around your image so that it fits the new background. Once finished, look at the result in your browser. 
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. Using this technique you could replace this dark blue background with a screaming neon pink, and the image would still display without borders. Always remember to keep your original files (with layers and in full color), since you are never sure whether you want to change the appearance of your page later.
  145.  
  146. In this example we only saved 0.3K more, but for some images this technique produces startling results, both significantly decreasing image size and reducing the fringing.
  147.  
  148.  
  149. Photoshop May Be Smart, But It‚Äôs Not Wise
  150.  
  151. When indexing and selecting your palette (assuming you‚Äôre not using Web-safe colors; I never do) don‚Äôt let Photoshop choose! Most of the time, when starting out from a 24 or 16-bit image, you‚Äôll end up with a 8-bit adapted palette, diffusion dithering. You don‚Äôt really want that. First of all, try turning off diffusion dithering. Any dithering really annoys me, so I try to get rid of it as quickly as possible. Just turn off that function and look at your image. Not satisfied? Ok, your old image is just a quick command-Z away. You might need dithering after all, but now let‚Äôs add another twist. Set the palette to adapted, 5-bit. Yes, that‚Äôs right, 5-bit. Sometimes dithering does amazing things, and you might end up with a good-looking image. If that doesn‚Äôt work, undo and increase the bits. If you‚Äôre lucky you‚Äôll end up with fewer than 8 bits, making your image smaller.
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168. Something on the exact palette: Photoshop will sometimes convert your existing palette directly and offer you a preset exact palette when indexing. Don‚Äôt always do that. Your image might look just the same with an adapted palette, diffusion dithering off, but with only half the colors! Let‚Äôs say Photoshop offers you an exact palette with 201 colors. Try 128 or even 64 colors; you‚Äôll be surprised! From there, making good transparent regions is not hard at all. Try the ‚Äúhidden feature‚Äù mentioned above for amazing results.
  169.  
  170.  
  171. Ramon Cahenzli is an independent webmaster and graphics designer working and¬†
  172. living in Switzerland. After finishing college he plans to go back to Spin, a Web
  173. design company and ISP for whom he already worked for a year. Currently he‚Äôs
  174. too busy playing Myth to do anything else though.
  175.  
  176. Check out <http://www.spin.ch/~rca> for more graphics.
  177.